package com.founder.gateway.component.transport.netty.extension;

import java.io.IOException;

import javax.servlet.ServletException;

import org.setu.framework.extension.annotation.SetuSpi;

import com.founder.gateway.component.transport.netty.exception.NettyException;
import com.founder.gateway.component.transport.netty.filter.NettyFilterChain;
import com.founder.gateway.component.transport.netty.http.NettyHttpRequest;
import com.founder.gateway.component.transport.netty.http.NettyHttpResponse;
@SetuSpi("base")
public interface NettyHttpFilter {
    public default void init() throws ServletException {}
    public void doFilter(NettyHttpRequest request, NettyHttpResponse response,
    		NettyFilterChain chain) throws IOException, NettyException;
    public default void destroy() {}
}
